package za.org.jcicada.cfgmngr.messages;

import za.org.jcicada.genss.ServiceURN;
import za.org.jcicada.genss.messages.BaseMessage;

/**
 * A LocateServiceRequest message.
 */
public class LocateServiceRequest extends BaseMessage {

    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;

    /**
     * Name of service to locate
     */
    ServiceURN serviceURN;

    /**
     * The desired location protocol
     */
    String protocol;

    /**
     * Create LocateServiceReply message
     */

    public LocateServiceRequest(ServiceURN serviceURN, String protocol) {
        this.serviceURN = serviceURN;
        this.protocol = protocol;
    }

    public ServiceURN getServiceURN() {
        return serviceURN;
    }

    public String getProtocol() {
        return protocol;
    }

}
